import request from '@/utils/request'

// 查询新闻动态列表
export function listPageJiayi_news(query) {
    return request({
        url: '/cms/jiayi_news/listPage',
        method: 'post',
        data: query
    })
}

// 查询新闻动态列表
export function listJiayi_news(query) {
    return request({
        url: '/cms/jiayi_news/list',
        method: 'post',
        data: query
    })
}

// 查询新闻动态详细
export function getJiayi_news(id) {
    return request({
        url: '/cms/jiayi_news/' + id,
        method: 'get'
    })
}

// 新增新闻动态
export function addJiayi_news(data) {
    return request({
        url: '/cms/jiayi_news',
        method: 'post',
        data: data
    })
}

// 修改新闻动态
export function updateJiayi_news(data) {
    return request({
        url: '/cms/jiayi_news',
        method: 'put',
        data: data
    })
}

// 删除新闻动态
export function delJiayi_news(id) {
    return request({
        url: '/cms/jiayi_news/' + id,
        method: 'delete'
    })
}
